<template>
  <div class="exhibition-card">
    <div class="text-content">
      <p class="title text-truncate">{{ title }}</p>
      <p class="intro">
        {{ text }}
      </p>
      <!-- <div class="detail">详情<i class="iconfont icon-chevron-right"></i></div> -->
    </div>
    <img :src="imgUrl" alt="img"
      style="pointer-events: none;">
  </div>
</template>

<script setup>
defineOptions({ name: "exhibitionComponent" })
defineProps({
  title: {
    type: String,
    default: "1"
  },
  text: {
    type: String,
    default: "1"
  },
  imgUrl: {
    type: String,
    default: ""
  }
})
</script>

<style lang="scss" scoped>
.exhibition-card {
  display: flex;
  justify-content: center; /* 水平居中 */
  width: 1200px;
  height: 300px;
  position: relative;
  margin-bottom: 24px;
  cursor: pointer;
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover
  }

  .text-content {
    box-sizing: border-box;
    color: #fff;
    background-color: #16252699;
    text-align: left;
    height: 100%;
    width: 462px;
    padding: 24px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);

    .title {
      font-weight: 700;
      font-size: 24px;
      line-height: 34px;
      color: #fffdf9;
      width: 295px;
      font-family: HanSerifSC-SemiBold, HanSerifSC-SemiBold-MAX, serif;
      -webkit-line-clamp: 2;
      width: 100%;
      max-height: 68px;
    }

    .tag {
      margin-bottom: 16px;
      padding: 1px 8px;
      border: 1px solid #fff0bd;
      border-radius: 1px;
      color: #fff0bd;
      width: fit-content;
      height: 20px;
      text-align: center;
      line-height: 20px;
      font-weight: 400;
      font-size: 12px
    }

    .intro {
      font-weight: 400;
      font-size: 14px;
      text-indent: 2em;
      line-height: 22px;
      color: #ffffffa0;
      text-align: justify;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 5;
      -webkit-box-orient: vertical
    }

    .detail {
      font-weight: 400;
      font-size: 14px;
      line-height: 22px;
      color: #ffffffa0;
      cursor: pointer;
      position: absolute;
      right: 24px;
      bottom: 24px
    }
  }
}

.exhibition-activity {
  position: relative;
  background-color: #02090a;
  color: #fffdf9;
  width: 100%;
  min-width: 1440px;
  min-height: 100vh
}

</style>